<!--navbar-->
<div class="navbar">
    <div class="navbar-inner">
        <div class="left">
            <a href="#" class="link back">
                <i class="icon icon-return"></i>
            </a>
        </div>
        <div class="center">云果-订单确认</div>
    </div>
</div>


<div class="pages navbar-through">
    <div class="page no-toolbar subtoolbar-through active" data-page="mallConfirm">        
        <div class="page-content">        
            <form action="{url:/yunsimple/cart3}" method="post" name="order_form" class="ajax-submit">
            <input type='hidden' name='direct_gid' value='{$this->gid}' />
	        <input type='hidden' name='direct_type' value='{$this->type}' />
	        <input type='hidden' name='direct_num' value='{$this->num}' />
	        <input type='hidden' name='direct_promo' value='{$this->promo}' />
	        <input type='hidden' name='direct_active_id' value='{$this->active_id}' />
	        <input type="hidden" name='delivery_id' value="1" /><!-- 配送方式：1.快递 2.货到付款-->
	        <input type="hidden" name="payment" value="10" /><!-- 支付方式 -->
	        <?php if(empty($this->addressList)){ ?>
            <div class="list-block adres-list empty">
                <a href="{url:/yunucenter/address}" class="button button-big button-add color-orange">添加地址</a>
            </div>
            <?php }?>
            <div class="list-block confirm-list">
                <ul>
                    {foreach:items=$this->addressList}
                    {if:$item['checked']==1}
                    <input type="hidden" name='radio_address' value="{$item['id']}" />
                    <li class="item-content item-address item-link">
                        <a href="{url:/yunucenter/address}"  class="item-inner">
                            <h4>收货地址:</h4>
                            <p>{$item['province_val']} {$item['city_val']} {$item['area_val']} {$item['address']}</p>
                            <p>姓名：{$item['accept_name']} &nbsp;&nbsp;&nbsp;&nbsp;电话:{$item['mobile']}</p>    
                        </a>
                    </li>
                    {/if}
                    {/foreach}
                    <!-- 商品展示 开始-->
                    {foreach:items = $this->goodsList}
                    <li class="item-inner o-p-detail row">
                        <div class="media">
                            <img src="{url:/pic/thumb/img/$item[img]/w/66/h/66}" alt="{$item['name']}" title="{$item['name']}">
                        </div>
                        <div class="title">
                            <h4><a href="{url:/yunsite/products/id/$item['goods_id']}">{$item['name']}</a></h4>
                            <div class="row">
                                <div class="num">数量{$item['count']} x 单价{$item['sell_price']}</div>
                                <div class="univalent"><!-- <em><small>&yen;</small>88</em>/<small>件</small>-->合计￥{$item['sum']}</div>
                            </div>
                        </div>
                    </li>
                    {/foreach}
                    <!-- 商品展示 结束-->
                    <li class="item-content item-coupon item-link">
                        <a href="{url:/yunsimple/redpacket}" class="item-inner">
                            <div class="item-title">代金券</div>
                            {if:$this->ticket_items['id'] > 0}
                            <input type="hidden" name='ticket_id[]' value="{$this->ticket_items['id']}">
                            <div class="item-after"><small>&yen;</small>{$this->ticket_items['value']}</div>
                            {else:}
                            <div class="item-after">不使用代金券</div>
                            {/if}
                        </a>
                    </li>
                    <li class="item-divider total">总价:<em><small>&yen;</small>{$this->final_sum}</em></li>
                </ul>
            </div>  
            <div class="list-footer">
                <input type="submit" class="button button-big submit" value="提交订单" />    
            </div>
            
            </form>
        </div>
        <!-- 
        <div class="subtoolbar">
            <a href="#" class="button button-big submit">提交订单</a>
        </div>
        -->
    </div>
</div>
